VERSION 5.00
Object = "{E87F3F56-6776-47D2-ABDE-21BC1AE1815C}#39.0#0"; "BLacKActiveXS.ocx"
Begin VB.Form FrmPesan 
   BackColor       =   &H00F3D2A0&
   BorderStyle     =   0  'None
   Caption         =   "Pesan"
   ClientHeight    =   6015
   ClientLeft      =   4980
   ClientTop       =   1845
   ClientWidth     =   7095
   Icon            =   "FrmPesan.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   6015
   ScaleWidth      =   7095
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.TextBox usnm 
      Height          =   285
      Left            =   360
      TabIndex        =   6
      Text            =   "Me"
      Top             =   6360
      Width           =   735
   End
   Begin BlacKActiveXS.BlackFrame Xpframe3 
      Height          =   4815
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   6855
      _ExtentX        =   12091
      _ExtentY        =   8493
      BackGradient    =   0
      Caption         =   ""
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      TitleColor1     =   16777215
      TitleColor2     =   15329769
      TitleGradient   =   2
      BorderColor     =   14737632
      Begin VB.ListBox Txtterimapesan 
         Appearance      =   0  'Flat
         Height          =   4515
         Left            =   120
         TabIndex        =   5
         Top             =   120
         Width           =   6615
      End
   End
   Begin BlacKActiveXS.BlackFrame BlackFrame1 
      Height          =   855
      Left            =   120
      TabIndex        =   2
      Top             =   5040
      Width           =   6855
      _ExtentX        =   12091
      _ExtentY        =   1508
      BackGradient    =   0
      Caption         =   ""
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      TitleColor1     =   16777215
      TitleColor2     =   15329769
      TitleGradient   =   2
      BorderColor     =   14737632
      Begin BlacKActiveXS.VistaGlassButton CmdKirim 
         Height          =   405
         Left            =   4200
         TabIndex        =   0
         Top             =   240
         Width           =   1095
         _ExtentX        =   1931
         _ExtentY        =   714
         ButtonStyle     =   7
         ButtonTheme     =   8
         BackColor       =   14648155
         BackColorPressed=   13459258
         BackColorHover  =   16741960
         BorderColor     =   9408398
         BorderColorPressed=   6045981
         BorderColorHover=   11632444
         Caption         =   "Kirim"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "Tahoma"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin BlacKActiveXS.VistaGlassButton cmdtutup 
         Height          =   405
         Left            =   5400
         TabIndex        =   4
         Top             =   240
         Width           =   1095
         _ExtentX        =   1931
         _ExtentY        =   714
         ButtonStyle     =   7
         ButtonTheme     =   8
         BackColor       =   14648155
         BackColorPressed=   13459258
         BackColorHover  =   16741960
         BorderColor     =   9408398
         BorderColorPressed=   6045981
         BorderColorHover=   11632444
         Caption         =   "Tutup"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "Tahoma"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin VB.TextBox TxtKirimPesan 
         Appearance      =   0  'Flat
         BackColor       =   &H00FCF2DC&
         ForeColor       =   &H00B54524&
         Height          =   375
         Left            =   240
         TabIndex        =   3
         Top             =   240
         Width           =   3735
      End
   End
   Begin VB.Shape Shape1 
      BorderColor     =   &H00808080&
      BorderWidth     =   5
      Height          =   6015
      Left            =   0
      Top             =   0
      Width           =   7095
   End
End
Attribute VB_Name = "FrmPesan"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Const HWND_TOPMOST = -1
Const SWP_NOSIZE = &H1
Private Declare Sub SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long)
Private Declare Function BringWindowToTop Lib "user32" (ByVal hwnd As Long) As Long
Private Sub CmdKirim_Click()
    If FrmMain.Winsock.State = sckConnected Then
        FrmMain.Winsock.SendData "pesan|" & FrmMain.Winsock.LocalIP & "|" & TxtKirimPesan.Text & "|_|_|"
        Txtterimapesan.AddItem usnm.Text & ": " & TxtKirimPesan.Text
        TxtKirimPesan.Text = ""
    End If
End Sub

Private Sub cmdtutup_Click()
Unload Me

End Sub

Private Sub Form_Load()
On Error GoTo hell
BringWindowToTop Me.hwnd
SetWindowPos Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE
    frmpesanload = True
    bahasaBilling
IfNoErr:
Exit Sub
hell:
 TulisError Err.Description, Err.Number, "Form_load", Me.Name
 Resume IfNoErr
End Sub
Private Sub Form_Unload(Cancel As Integer)
    frmpesanload = False
End Sub
Private Sub TxtKirimPesan_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Call CmdKirim_Click
End If
End Sub

